home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fatted Calf
/
The Fatted Calf.iso
/
Applications
/
Audio
/
Patchmix
/
Source
/
CommandScroll.h
< prev
next >
Wrap
Text File
|
1992-07-31
|
826b
|
34 lines
/*
CommandScroll.m
by Joe Freeman
Subprocess Example, Release 2.0
NeXT Computer, Inc.
You may freely copy, distribute and reuse the code in this example.
NeXT disclaims any warranty of any kind, expressed or implied, as to
its fitness for any particular use.
*/
#import <appkit/ScrollView.h>
/*
* This object sends its delegate the "userEntered:" message
* whenever new text is entered in the text object inside this ScrollView
*
*/
@interface CommandScroll:ScrollView
{
id docView;
id delegate;
int lastTextCount;
// size of the text object the last time this program played with it
id machineFont, userFont;
// so the user can distinguish what they typed from system output
}
- appendString:(char *)buffer;
// append the buffer to the end of the text object
@end